package com.example.demoWebGradle.resources;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Component;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("helloWorld")
@Api(value = "/helloWorld", description = "hello world", produces = MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Component
public class HelloWorldResource {

    @POST
    @Path("/testHelloWorld")
    @ApiOperation(value = "test", httpMethod = "POST", notes = "test")
    public String testHelloWorld() {
        return "hello world!  向琳";
    }


}
